package com.cyzy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyzy.dao.UserRoleDao;
import com.cyzy.mapper.UserMapper;
import com.cyzy.pojo.User;
import com.cyzy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public UserRoleDao getUserRole(int userId) {
        UserRoleDao userRole = userMapper.getUserRole(userId);
        return userRole;
    }

    @Override
    public List<UserRoleDao> getTeacherList(UserRoleDao userRoleDao) {
        List<UserRoleDao> teacherList = userMapper.getTeacherList(userRoleDao);
        return teacherList;
    }

}
